<?php
namespace app\admin\Validate;

use think\Validate;

class Link  extends  Validate
{
    protected $rule = [
        'title'  =>  'require|unique:link',
        'link_url'  =>  'url',

    ];

    protected $message = [
        'title.require'  =>  '链接名称必须填写',
        'title.unique'  =>  '链接名称不能重复',
        'link_url.url'  =>  'url地址格式不符合',


    ];


}
